package org.example.library.model;

import lombok.Data;

@Data
public class PageRequest {
    private int currentPage = 1; // 当前⻚
    private int pageSize = 10; // 每⻚中的记录数
    private int offset;
    public int getOffset() {

        return (currentPage-1) * pageSize;
    }
}
